package Homework2;

public class PalindromeString {
    public static boolean isPalindromeString(String s){
        int is = 0;
        for (int i = 0, j = s.length() - 1; i <= j; i++, j--){
            if (s.charAt(i) != s.charAt(j)){
                is = 1;
                break;
            }
        }
        if (is == 0)
            return true;
        else
            return false;
    }
}
